<template>
  <div>
    <h1>
      动态组件说明哈哈
    </h1>
    <!-- <UserInfo />
    <JobInfo /> -->
    <button @click="pageName='UserInfo'">个人详情</button>
    <button @click="pageName='JobInfo'">岗位信息</button>

    <component :is="pageName" />
  </div>
</template>

<script>
import UserInfo from '@/views/employees/components/user-info.vue'
import JobInfo from '@/views/employees/components/job-info.vue'
export default {
  components: {
    UserInfo,
    JobInfo
  },
  data() {
    return {
      pageName: 'UserInfo'
    }
  }
}
</script>

<style>

</style>
